package com.dzl.enterprise.dao;

import com.dzl.base.mapper.BaseMapper;
import com.dzl.enterprise.pojo.WelfareEnterpriseOrganization;
import com.dzl.enterprise.pojo.vo.WelfareEnterpriseOrganizationTreeVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 企业组织信息表(WelfareEnterpriseOrganization)表数据库访问层
 * @author ChenLong
 * @date 2021-09-07 15:28:22
 */
@Repository
public interface WelfareEnterpriseOrganizationMapper extends BaseMapper<WelfareEnterpriseOrganization> {

    /**
     * 通过父级Id查找子级Id列表
     * @author ChenLong
     * @date 2021-09-08 17:52:57
     * @param list ID列表
     * @return java.util.List<java.lang.Integer>
     **/
    List<Integer> getChildIdListByParentId(@Param("list") List<Integer> list);

    /**
     * 获取组织分类树
     * @param welfareEnterpriseOrganizationSelect 搜索对象
     * @return WelfareEnterpriseOrganizationTreeVo
     */
    List<WelfareEnterpriseOrganizationTreeVo> getEnterpriseOrganizationTreeVo(WelfareEnterpriseOrganization welfareEnterpriseOrganizationSelect);
}
